use ggez::{Context, graphics};

pub struct Liquid {
    pub x: f32,
    pub y: f32,
    pub w: f32,
    pub h: f32,
    pub c: f32
}

impl Liquid {
    pub fn display(&self, ctx: &mut Context, canvas : &mut graphics::Canvas) -> () {
        let circle = graphics::Mesh::new_rectangle(
            ctx,
            graphics::DrawMode::fill(),
            graphics::Rect { x: self.x, y: self.y, w: self.w, h: self.h },
            graphics::Color { r: 0.0, g: 0.5, b: 0.5, a: 1.0 },
        ).unwrap();
        canvas.draw(&circle, graphics::DrawParam::default());
    }
}